﻿using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;
using System.ComponentModel.DataAnnotations;

namespace TestApp.BookStore.Authors
{
    /// <summary>
    /// 更新作者信息的DTO（数据传输对象）
    /// </summary>
    public class UpdateAuthorDto
    {
        /// <summary>
        /// 作者的姓名，必填项
        /// </summary>
        [Required]
        [StringLength(AuthorConsts.MaxNameLength)]
        public string Name { get; set; }

        /// <summary>
        /// 作者的出生日期，必填项
        /// </summary>
        [Required]
        public DateTime BirthDate { get; set; }

        /// <summary>
        /// 作者的简短传记，可选项
        /// </summary>
        public string ShortBio { get; set; }
    }
}